package com.woniu.ucenterservice.service;


import com.woniu.ucenterservice.pojo.User;

import javax.validation.Valid;

/**
 * @author bystander
 * @date 2018/10/1
 */

public interface UserService {


    Boolean checkData(String data, Integer type) ;
    /**
     * 发送验证码
     * @param phone
     * @return
     */
   // @PostMapping("send")
   // void sendVerifyCode(@RequestParam("phone") String phone) ;
    /**
     * 用户注册
     * @param user
     * @param code
     * @return
     */
    //@PostMapping("register")
   void register(@Valid User user,String code) ;

    /**
     * 根据用户名和密码查询用户
     * @param username
     * @param password
     * @return
     */
   //@GetMapping("query")
    User queryUser(String username,  String password);

    void fixPassWord(String username ,String oldpassword,String newpassword);
    void isCode( String email,String verCode);
    void  findPwd(String username,String pwd);

    void sendVerifyCode(String phone);

}
